package com.rj;

import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.*;

/**
 * 控制器测试
 *
 * @author YFX_RANLUBO
 * @date 2024/09/17 07:46
 **/
@ControllerAdvice
 public class GController {

    @ExceptionHandler(MethodArgumentNotValidException.class)
    @ResponseBody
    public Object[] beanTest(MethodArgumentNotValidException e) {
     return e.getDetailMessageArguments();
     }

}
